<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>详细</title>
</head>
<body>


	<div class="container-fluid">
		<div class="modal-header">
			<button type="button" class="close" data-ng-click="Model.cancel()" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h5>详细{{dataBillSetting.dialogTitle}}</h5>
		</div>
		<div class="modal-body">

			<form class="form-horizontal" name="backstage_subsysBill_single_form">
			
				<div class="form-group form-group-sm">
					<label for="backstage_subsysBill_single_form_fID" class="col-sm-2 control-label">fID</label>
					<div class="col-sm-10">
						<p class="form-control-static" id="backstage_subsysBill_single_form_fID">
							{{dataBillSetting.rows[dataBillSetting.currentIndex].fID.value}}
						</p>
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label for="backstage_subsysBill_single_form_fMasterID" class="col-sm-2 control-label">fMasterID</label>
					<div class="col-sm-10">
						<p class="form-control-static" id="backstage_subsysBill_single_form_fMasterID">
							{{dataBillSetting.rows[dataBillSetting.currentIndex].fMasterID.value}}
						</p>
					</div>
				</div>
				<div class="form-group form-group-sm has-warning">
					<label for="backstage_subsysBill_single_form_billType" class="col-sm-2 control-label">代码</label>
					<div class="col-sm-10">
						<input type="text" name="billType" required="true" class="form-control" 
							data-ng-model="dataBillSetting.rows[dataBillSetting.currentIndex].billType.value" id="backstage_subsysBill_single_form_billType"
							>
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-class="{false:'form-group has-feedback has-success',true:'form-group has-feedback has-error'}[backstage_subsysBill_single_form.billTypeName.$invalid==true]">
					<label for="backstage_subsysBill_single_form_billTypeName" class="col-sm-2 control-label">名称</label>
					<div class="col-sm-10">
						<input type="text" 
							name="billTypeName" 
							required="true" 
							ng-minlength=2 
	            			ng-maxlength=100
							class="form-control" 
							data-ng-model="dataBillSetting.rows[dataBillSetting.currentIndex].billTypeName.value" id="backstage_subsysBill_single_form_billTypeName"
							>
						<span class="glyphicon glyphicon-ok form-control-feedback" 
						ng-show="backstage_subsysBill_single_form.billTypeName.$dirty && backstage_subsysBill_single_form.billTypeName.$valid"></span>
					</div>
					<span class="error" 
					      ng-show="backstage_subsysBill_single_form.billTypeName.$dirty && backstage_subsysBill_single_form.billTypeName.$invalid">
					  <small class="error" 
					      ng-show="backstage_subsysBill_single_form.billTypeName.$error.required">
					      Your name is required.
					  </small>
					  <small class="error" 
					          ng-show="backstage_subsysBill_single_form.billTypeName.$error.minlength">
					          Your name is required to be at least 2 characters
					  </small>
					  <small class="error" 
					          ng-show="backstage_subsysBill_single_form.billTypeName.$error.maxlength">
					          Your name cannot be longer than 100 characters
					  </small>
					</span>
				</div>
				
				
				<div class="row">
					<div class="col-sm-6">
						<div class="form-group form-group-sm">
							<label for="backstage_subsysBill_single_form_codeType" class="col-sm-4 control-label">编码类型</label>
							<div class="col-sm-8">
								<select-with-label 
									select-data="dataCodeType" 
									select-label="label"
									select-value="value"
									target-data="dataBillSetting"
									target-label="codeTypeLabel"
									target-value="codeType"
									row-index="dataBillSetting.getCurrentIndex()"
									vertical="dropdown"
									horizon="right"
									value-show="true">
								</select-with-label>
							</div>
						</div>
					
					</div>
					<div class="col-sm-6">
						<div class="form-group form-group-sm has-warning">
							<label for="backstage_subsysBill_single_form_codeCount" class="col-sm-4 control-label">编码长度</label>
							<div class="col-sm-8">
								<select id="backstage_subsysBill_single_form_codeCount" class="form-control"
									data-ng-options="o for o in dataCodeCount"
									data-ng-model="dataBillSetting.rows[dataBillSetting.currentIndex].codeCount.value"
									>
									<option value="">-- 选择编码长度 --</option>
								</select>
							</div>
						</div>
					
					</div>
				</div>
				
				<div class="row">
					<div class="col-sm-6">
						<div class="form-group form-group-sm has-warning">
							<label for="backstage_subsysBill_single_form_preChar" class="col-sm-4 control-label">编码前缀</label>
							<div class="col-sm-8">
								<input type="text" name="preChar" required="true" class="form-control" 
									data-ng-model="dataBillSetting.rows[dataBillSetting.currentIndex].preChar.value" id="backstage_subsysBill_single_form_preChar"
									>
							</div>
						</div>
					
					</div>
					<div class="col-sm-6">
						<div class="form-group form-group-sm has-warning">
							<label for="backstage_subsysBill_single_form_autoCode" class="col-sm-4 control-label">自动编码</label>
							<div class="col-sm-8">
								<input type="checkbox" name="autoCode" class="form-control" 
									data-ng-model="dataBillSetting.rows[dataBillSetting.currentIndex].autoCode.value" id="backstage_subsysBill_single_form_autoCode"
									data-ng-true-value="'Y'" data-ng-false-value="'N'"
									>
							</div>
						</div>
					
					</div>
				</div>
			
				
				<div class="row">
					<div class="col-sm-6">
					
					</div>
					<div class="col-sm-6">
					
					</div>
				</div>
			
			

				<div class="row">
					<div class="col-sm-6">
						<div class="form-group form-group-sm has-warning">
							<label for="backstage_subsysBill_single_form_flowType" class="col-sm-4 control-label">审签方式</label>
							<div class="col-sm-8">
								<select-with-label 
									select-data="dataFlowType" 
									select-label="label"
									select-value="value"
									target-data="dataBillSetting"
									target-label="flowTypeLabel"
									target-value="flowType"
									row-index="dataBillSetting.getCurrentIndex()"
									vertical="dropup"
									horizon="right"
									value-show="false">
								</select-with-label>
							</div>
						</div>
					
					</div>
					<div class="col-sm-6">
						<div class="form-group form-group-sm has-warning">
							<label for="backstage_subsysBill_single_form_billLog" class="col-sm-4 control-label">启用日志</label>
							<div class="col-sm-8">
								<input type="checkbox" name="autoCode" class="form-control" 
									data-ng-model="dataBillSetting.rows[dataBillSetting.currentIndex].billLog.value" id="backstage_subsysBill_single_form_billLog"
									data-ng-true-value="'Y'" data-ng-false-value="'N'"
									>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group form-group-sm has-warning">
					<label for="backstage_subsysBill_single_form_revOpay" class="col-sm-2 control-label">收入/支出</label>
					<div class="col-sm-10">
						<select-with-label 
							select-data="dataRevOpay" 
							select-label="label"
							select-value="value"
							target-data="dataBillSetting"
							target-label="revOpayLabel"
							target-value="revOpay"
							row-index="dataBillSetting.getCurrentIndex()"
							vertical="dropup"
							horizon="right"
							value-show="true">
						</select-with-label>
					</div>
				</div>
				<div class="form-group form-group-sm has-warning">
					<label for="backstage_subsysBill_single_form_direction" class="col-sm-2 control-label">蓝字/红字</label>
					<div class="col-sm-10">
						<select-with-label 
							select-data="dataDirection" 
							select-label="label"
							select-value="value"
							target-data="dataBillSetting"
							target-label="directionLabel"
							target-value="direction"
							row-index="dataBillSetting.getCurrentIndex()"
							vertical="dropup"
							horizon="right"
							value-show="true">
						</select-with-label>
					</div>
				</div>
				<div class="form-group form-group-sm has-warning">
					<label for="backstage_subsysBill_single_form_dealType" class="col-sm-2 control-label">交易类别</label>
					<div class="col-sm-10">
						<select id="backstage_subsysBill_single_form_dealType" class="form-control"
							data-ng-options="o.value as o.label for o in dataDealType"
							data-ng-model="dataBillSetting.rows[dataBillSetting.currentIndex].dealType.value"
							>
						</select>
					</div>
				</div>
				
				<div class="form-group form-group-sm has-warning">
					<label for="backstage_subsysBill_single_form_costingCode" class="col-sm-2 control-label">影响成本</label>
					<div class="col-sm-10">
						<select-with-label 
							select-data="dataCostingCode" 
							select-label="label"
							select-value="value"
							target-data="dataBillSetting"
							target-label="costingCodeLabel"
							target-value="costingCode"
							row-index="dataBillSetting.getCurrentIndex()"
							vertical="dropup"
							horizon="left"
							value-show="true">
						</select-with-label>
						
					</div>
				</div>


				<div class="form-group form-group-sm" hidden="true">
					<label for="backstage_subsysBill_single_form_version" class="col-sm-3 control-label">版本</label>
					<div class="col-sm-9">
						<p class="form-control-static" id="backstage_subsysBill_single_form_version">
						{{dataBillSetting.rows[dataBillSetting.currentIndex].version.value}}
						</p>
					</div>
				</div>

				
			</form>
			<pre hidden="true">
			[backstage_subsysBill_single_form.billType.$dirty]:{{backstage_subsysBill_single_form.billType.$dirty}}
			[backstage_subsysBill_single_form.billType.$valid]:{{backstage_subsysBill_single_form.billType.$valid}}
			[backstage_subsysBill_single_form.billType.$error]:{{backstage_subsysBill_single_form.billType.$error}}
			</pre>

		</div>
		<div class="modal-footer">
			<button class="btn btn-primary"
			data-ng-disabled="backstage_subsysBill_single_form.billType.$dirty && backstage_subsysBill_single_form.billType.$invalid 
			|| backstage_subsysBill_single_form.billType.$error.required 
			|| backstage_subsysBill_single_form.billTypeName.$dirty && backstage_subsysBill_single_form.billTypeName.$invalid 
			|| backstage_subsysBill_single_form.billTypeName.$error.required "
			data-ng-click="Model.ok()">确定</button>
			<button class="btn btn-warning" data-ng-click="Model.cancel()">取消</button>
		</div>

	</div>




</body>
</html>